package com.njuse.jvmfinal.Instruction;

import java.nio.ByteBuffer;

import com.njuse.jvmfinal.runtimestructure.Jframe;

public class I2L extends Instruction {
	public  void readindex(ByteBuffer reader) {
		//pass
	}
	
	public  void execute(Jframe frame) {
		int top=frame.getStacktop();
		Object[] stack=frame.getManagestack();
		int temp=(int) stack[top-1];
		top=top-1;
		long number=(long) temp;
		stack[top]=(int) number;
		stack[top+1]=(int)(number>>32);
		top=top+2;
		frame.setManagestack(stack);
		frame.setStacktop(top);
	}
}
